package com.letoken.platform.repo.ecommerce.dto;

import com.letoken.platform.repo.ecommerce.po.EcommerceUserEvaluate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ApiModel(value = "发表评价", description = "发表评价对象")
public class UserPushEvaluateReq implements Serializable {




    @NotNull(message = "80000007")
    private Integer orderId;


    @ApiModelProperty(value = "评分")
    @NotNull(message = "80000007")
    private Float score;

    @ApiModelProperty(value = "0=匿名 1=非匿名")
    @NotNull(message = "80000007")
    private Integer anonymous;

    @ApiModelProperty(value = "评价内容")
    @NotBlank(message = "80000007")
    @Size(max = 500, message = "内容过长")
    private String content;

    // 视频放第一个
    private String pics;


    private String videoUrl;

    private String coverUrl;

}
